<script setup>
import { ref } from 'vue';


let count = ref(5)
</script>

<template>
    <ul>
        <!-- 从 1 开始到 指定值的闭区间 -->
        <li v-for="num in count">{{ num }}</li>
    </ul>   
</template>

<style lang="css" scoped></style>